extends Node2D

@onready var timer: Timer = $Timer
@onready var c_army: C_Army = $C_Army

# Called when the node enters the scene tree for the first time.
func _ready() -> void:
	pass # Replace with function body.


# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
	pass



func _on_button_pressed() -> void:
	timer.start()

func _on_timer_timeout() -> void:
	c_army.add_pawn()
	timer.stop()



func _on_button_2_pressed() -> void:
	for i in c_army.pawn:
		self.add_child(i)
	c_army.pawn.clear()
